local kl__langxi = fk.CreateSkill {
  name = "kl__langxi",
}

Fk:loadTranslationTable{
  ["kl__langxi"] = "狼袭",
  [":kl__langxi"] = "准备阶段，你可以对一名其他角色造成2点伤害。",

  ["#kl__langxi-choose"] = "狼袭：你可以对一名其他角色造成2点伤害！",

  ["$kl__langxi1"] = "诸部听令，随我反攻长安！",
  ["$kl__langxi2"] = "袭以虎狼之势，破于须臾之间。",
}

kl__langxi:addEffect(fk.EventPhaseStart, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(kl__langxi.name) and player.phase == Player.Start and #player.room:getOtherPlayers(player) > 0
  end,
  on_cost = function(self, event, target, player, data)
    local room = player.room
    local to = room:askToChoosePlayers(player, {
      targets = room:getOtherPlayers(player),
      min_num = 1,
      max_num = 1,
      prompt = "#kl__langxi-choose",
      skill_name = kl__langxi.name,
      cancelable = true,
    })
    if #to > 0 then
      event:setCostData(self, {tos = to})
      return true
    end
  end,
  on_use = function(self, event, target, player, data)
    player.room:damage({
      from = player,
      to = event:getCostData(self).tos[1],
      damage = 2,
      skillName = kl__langxi.name,
    })
  end,
})


return kl__langxi
